package com.why.serviceedu.controller;

import com.why.commonresults.Result;
import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.web.bind.annotation.*;

/**
 * @program: guli_parent
 * @description:模拟登录
 * @author: @why
 * @create: 2021-01-28 11:36
 **/
@RestController
@RequestMapping("/eduservice/user")
@CrossOrigin
public class EduLoginController {


    @PostMapping(value ="login")
    public Result login(){


        return Result.ok().data("token","admin");
    }

    @GetMapping(value ="Info")
    public Result Info(){


        return Result.ok().data("roles","admin").
                data("name","admin").
                data("avatar","https://dss1.bdstatic.com/70cFvXSh_Q1YnxGkpoWK1HF6hhy/it/u=3363295869,2467511306&fm=26&gp=0.jpg");
    }


}
